home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Static Menus
- Sent: 7/10/96 3:31 PM
- Received: 7/10/96 2:41 PM
- From: Paul Mylchreest, paulm@teamsoft.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Is there any way to "lock down" the root part's menus in such a way that
- >the "active" part's menus are either not shown or appended to the root
- >part's menus.
- >
- >Or ... What is the best way to create a part that cannot be activated by
- >the user (like simple control parts).
- >
- >
- >========================================================================
- >John Casey email: jcasey@ncs-ssc.com
- >Vice President web: http://www.ncs-ssc.com
- >Nation Computer Services voice: (804) 378-8917
- > fax: (601) 689-8130
- >========================================================================
-
- I don't know if this is what you want, but looking a ODFButton part's method
-
- FW_Boolean COptionBehavior::DoMouseDown(Environment* ev, const
- FW_CMouseEvent& theMouseEvent)
- {
- FW_Boolean optionPressed = theMouseEvent.IsCopyModifier(ev);
-
- // Switches focus set on the fly to allow selection of the button when it's an
- // embedded frame.
- fFrame->SetFocusSet(ev, optionPressed); <-- remove this line
-
- return optionPressed;
- }
-
- Now, the button part menu does not activate.
-
- Paul.
-
-
-